package com.bingxue.edu.management.system.model.req;

import com.bingxue.edu.common.enums.CommonStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@Schema(description = "修改字典项信息")
public class DictItemUpdateReq {

    @Schema(description = "字典id")
    @NotBlank(message = "字典id不能为空")
    @Length(max = 64, message = "字典id长度不能超过 {max} 个字符")
    private String dictId;

    @Schema(description = "标签")
    @NotBlank(message = "标签不能为空")
    @Length(max = 64, message = "标签长度不能超过 {max} 个字符")
    private String label;

    @Schema(description = "颜色")
    @Length(max = 64, message = "颜色长度不能超过 {max} 个字符")
    private String color;

    @Schema(description = "排序号")
    private Integer sort;

    @Schema(description = "状态")
    private CommonStatusEnum status;

    @Schema(description = "描述")
    @Length(max = 900, message = "描述长度不能超过 {max} 个字符")
    private String description;
}
